package org.darkforest.dao.mapper;

import org.darkforest.dao.annotation.DBMapper;
import org.darkforest.model.ActiveAreaGoods;

import java.util.List;
import java.util.Map;

@DBMapper
public interface ActiveAreaGoodsMapper {
    int deleteByPrimaryKey(Integer rId);

    int insert(ActiveAreaGoods record);

    int insertSelective(ActiveAreaGoods record);

    ActiveAreaGoods selectByPrimaryKey(Integer rId);

    int updateByPrimaryKeySelective(ActiveAreaGoods record);

    int updateByPrimaryKey(ActiveAreaGoods record);

    List<ActiveAreaGoods> selectByCondition(ActiveAreaGoods activeAreaGoods);

    //根据商品ID批量修改专区商品状态
    int updateStateByGoodsCommonids(Map map);

    int updateRecommendTypeByGoodsCommonid(Map map);

    int deleteByGoodsCommonid(Integer goodsCommonid);

    int updateStoreName(ActiveAreaGoods record);
}